<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                <header class="panel-heading">
                    Nova notícia
                </header>
                <div class="panel-body">
                    <div class="form">
                        <?php echo $this->Form->create('Config', array('type'=>'file','class'=>'form-validate form-horizontal')); ?>
                            <div class="form-group ">
                                <label for="cname" class="control-label col-lg-2">Título<span class="required">*</span></label>
                                <div class="col-lg-10">
                                    <?php echo $this->Form->input('title',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                </div>
                            </div>

                            <div class="form-group ">
                                <label for="cname" class="control-label col-lg-2">Subtítulo<span class="required">*</span></label>
                                <div class="col-lg-10">
                                    <?php echo $this->Form->input('subtitle',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                </div>
                            </div>

                            <div class="form-group ">
                                <label for="cname" class="control-label col-lg-2">Texto inicial<span class="required">*</span></label>
                                <div class="col-lg-10">
                                    <?php echo $this->Form->input('initial_text',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                </div>
                            </div>

                            <?php /*
                            <div class="form-group ">
                              <div class="upload_image">
                                  <label for="Image0Attachment">Enviar imagem</label>
                                  <?php
                                  echo $this->Form->input('Image.0.attachment', array(
                                    'class'=>'imageAttachment',
                                    'type' => 'file',
                                    'label' => false,
                                    'style'=>'display: none;',
                                    'onChange'=>""));
                                    echo $this->Form->input('Image.0.model', array('type' => 'hidden', 'value' => 'Config'));
                                    echo $this->Form->input('Image.0.filetype', array('type' => 'hidden', 'value' => 'image'));
                                    ?>
                                    <div class="text_upload_image" data-id="Image0Attachment">
                                      <picture>

                                      </picture>
                                      <p>5 MB máximo</p>
                                      <!--p>Dimensões: 208x138px</p-->
                                  </div>
                                </div>
                              </div>
                              */?>

                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">URL do Facebook<span class="required"></span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('facebook_url',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>

                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">URL do Instagram<span class="required"></span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('instagram_url',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>


                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">URL do Pinterest<span class="required"></span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('pinterest_url',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>


                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">URL do Linkedin<span class="required"></span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('linkedin_url',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>


                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">URL do Youtube<span class="required"></span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('youtube_url',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>


                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">URL do Vídeo Promocional<span class="required">*</span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('video_promocional',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>


                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">E-mail para contato<span class="required">*</span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('email_contato',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>

                              <div class="form-group ">
                                  <label for="cname" class="control-label col-lg-2">Status<span class="required">*</span></label>
                                  <div class="col-lg-10">
                                      <?php echo $this->Form->input('status',array('label' => false, 'class'=>'form-control', 'div'=>false));?>
                                  </div>
                              </div>

                              <div class="form-group">
                                  <div class="col-lg-offset-2 col-lg-10">
                                      <?php // echo $this->Form->end("Salvar", array("class"=>"btn btn-primary"));?>
                                      <?php echo $this->Form->button('Salvar', array('type' => 'submit',  "class" => "btn btn-primary")); ?>
                                      <button class="btn btn-default" type="button">Cancel</button>
                                  </div>
                              </div>
                        </form>
                    </div>

                </div>
            </section>
        </div>
    </div>
</section>
